package com.phevos.knowledge.model;

import java.io.Serializable;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Table;

@Entity
@Table(name="categories",catalog="knowledge")
public class Categories extends BaseObject implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = 8137494960429079597L;
    private CategoriesId id;

    @EmbeddedId @GeneratedValue(strategy = GenerationType.AUTO)    
    public CategoriesId getId() {
        return this.id;
    }
    
    public void setId(CategoriesId id) {
        this.id = id;
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Categories pojo = (Categories) o;


        return true;
    }

    public int hashCode() {
        int result = 0;

        return result;
    }

    public String toString() {
        StringBuffer sb = new StringBuffer(getClass().getSimpleName());

        sb.append(" [");
        sb.append("id").append("='").append(getId()).append("'");
        sb.append("]");
      
        return sb.toString();
    }

}
